// 播放列表渲染
        function renderPlaylist(playlist) {
            const playlistContainer = document.getElementById('playlist-container');
            playlistContainer.innerHTML = '';
            
            playlist.forEach((track, index) => {
                const playlistItem = document.createElement('div');
                playlistItem.className = 'playlist-item';
                playlistItem.dataset.index = index;
                
                playlistItem.innerHTML = `
                    <img src="img/${track.cover}" alt="${track.title}封面图">
                    <div class="playlist-info">
                        <div class="playlist-title">${track.title}</div>
                        <div class="playlist-artist">${track.artist}</div>
                    </div>
                    <div class="playlist-duration">${track.duration || '0:00'}</div>
                `;
                
                playlistContainer.appendChild(playlistItem);
            });
        }
    